package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Data
@TableName(value = "imsingle", autoResultMap = true)
public class ImsingleDO {
    @Id
    @Field(type = FieldType.Integer)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 内容 */
    @Field(name = "content", type = FieldType.Text, analyzer="ik_max_word")
    private String content;
    /** 发送人 */
    @Field(name = "fromuser", type = FieldType.Text, analyzer="ik_max_word")
    private String fromuser;
    /** 时间 */
    @Field(name = "create_time", type = FieldType.Text, analyzer="ik_max_word")
    private Date createTime;
    /** 类型 */
    @Field(name = "type", type = FieldType.Text, analyzer="ik_max_word")
    private String type;
    /** 接收人 */
    @Field(name = "touser", type = FieldType.Text, analyzer="ik_max_word")
    private String touser;
    /** 是否已读 */
    @Field(name = "readed", type = FieldType.Text, analyzer="ik_max_word")
    private Integer readed;

}
